package blogsys.demo.server;

import blogsys.demo.bean.UserBlog;
import blogsys.demo.utils.JsonResult;

import javax.servlet.http.HttpServletRequest;

/**
 * 用户博客业务接口
 */
public interface UserBlogServer {
    //获取该页的博客
    JsonResult getAllBolg(int pageNum);

    //插入一条博客
    JsonResult addBlogById(HttpServletRequest request,UserBlog userBlog);

    //获取一条博客
    JsonResult getBlogById(HttpServletRequest request,int pageNum);

    //删除一套博客
    JsonResult removeBlogById(String blogId);

    //修改博客标题 标签 内容
    JsonResult updateBlog(UserBlog userBlog);
}
